﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace CuongHanh.Configuration
{
    public class LinkConfig
    {
        public const string QUEN_MAT_KHAU = "quen-mat-khau";
        public const string DANG_NHAP = "dang-nhap";
        public const string DANG_KY = "dang-ky";
        public const string LAY_LAI_MAT_KHAU = "lay-lai-mat-khau";
        public const string DOI_MAT_KHAU = "doi-mat-khau";
        public const string THOAT = "thoat";
        public const string GIO_HANG = "trang-suc/gio-hang";
        public const string THANH_TOAN = "trang-suc/thanh-toan";

        public const string TRANG_SUC_INDEX = "trang-suc";

        public static string Register(string language)
        {
            return language == AppUtil.LANGUAGE_EN
                    ? "register"
                    : "dang-ky";
        }

        public static string Login(string language)
        {
            return language == AppUtil.LANGUAGE_EN
                    ? "login"
                    : "dang-nhap";
        }

        public static string Cart(string language)
        {
            return language == AppUtil.LANGUAGE_EN
                    ? string.Format("{0}/check-out/cart",
                                                              AppUtil.JWELLERY_ROUTE_EN)
                    : string.Format("{0}/check-out/gio-hang",
                                                              AppUtil.JWELLERY_ROUTE_VI);
        }

    }
}